import React from "react";
import Eprogress from "./progress";
import stylescss from "@/style/dougnth.module.scss"
function Doughntchart({ data, size, type }) {
    // type=border的时候，会有圆环
    return (
        <>
            <div className={stylescss.box}>
                {
                    data.map((item, index) => {
                        return (

                            <div className={stylescss.children_item} key={index}>
                                <div className={stylescss.item_container}>
                                    <Eprogress type={type} size={size} state={item.value} title={item.name} />
                                </div>
                            </div>

                        )
                    })
                }
            </div>
        </>
    )
}
export default Doughntchart